package com.pactera.error;

public enum EmBizError implements CommonError {

    // 通用错误类型
    PARAMETER_VALIDATION_ERROR(100001,"参数不合法"),
    // 未知错误
    UNKNOW_ERROR(100002,"未知错误")
    ;

    private EmBizError(int errCode, String errMsg) {
        this.errCode = errCode;
        this.errMsg = errMsg;
    }
    private  int errCode;
    private String errMsg;

    @Override
    public int getErrorCode() {
        return this.errCode;
    }

    @Override
    public String getErrorMessage() {
        return this.errMsg;
    }

    @Override
    public CommonError setErrorMessage(String errorMessage) {
        this.errMsg = errorMessage;
        return this;
    }
}
